package com.lgy.dao;

import com.lgy.pojo.Repertory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RepertoryDao {
    int deleteByPrimaryKey(Integer repertoryid);

    int insert(Repertory record);

    int insertSelective(Repertory record);

    Repertory selectByPrimaryKey(Integer repertoryid);

    int updateByPrimaryKeySelective(Repertory record);

    int updateByPrimaryKey(Repertory record);

    List<Repertory> findAllByCompanyId(@Param("companyId") Integer companyId);

    List<Repertory> findByCompanyId(Integer companyId);

    Repertory findRepertoryByCarId(Integer carId);

    void updateRepertoryNum(@Param("carId") Integer carId,@Param("repertoryNum")Integer repertoryNum);

    int findRepertoryNum(@Param("companyId") Integer companyId, @Param("carId") Integer carId);

    int updateRepertoryNumByCarId(@Param("carId") Integer carId, @Param("companyId")Integer companyId, @Param("carNum")Integer carNum);
}